<template>
  <div id="app">
    <keep-alive v-if="$route.meta.keepAlive">
      <router-view v-if="$route.meta.keepAlive"></router-view>
    </keep-alive>
    <router-view v-if="!$route.meta.keepAlive && isRouterAlive"></router-view>
  </div>
</template>

<script>
  export default {
    name: 'app',
    data() {
      return {
        isRouterAlive: true
      }
    }
  }
</script>

<style lang="less">
  @import 'less/reset';
</style>
